package com.zy.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * @author zy
 * @date 2023/5/17 17:00
 */

@Data
@Accessors(chain = true)
public class Dynamic implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private  Long id;

    private String  username;

    private Timestamp sendTime;

    private Integer likes;

    private String content;

    private  String imagePaths;

    @TableField(exist = false)
    private Boolean isLike;

    @TableField(exist = false)
    private List<Comments> commentsList;
    @TableField(exist = false)
    private String avatarUrl;
}
